package syren;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Configuration extends JPanel {

	Container pane;
	String name;
	public Configuration (int x)
	{
		if(x==1)
			create();
		else
			load();
		
		add(pane);
	}

	
	public Container create()
	{
		pane = new JPanel();
		JLabel label = new JLabel("test");
		pane.add(label);
		return pane;	
		
	}
	public Container load(){
		pane = new JPanel();
		JLabel label = new JLabel ("load");
		pane.add(label);
		return pane;
	}
	
	public void setName(String name){
		this.name = name;	
	}
	
	public String getName(){
		return name; 
	}
	
}
